package com.ww.java8.fp.lambda;

import java.util.function.Function;

public class ProducerFunction {
    /**
     * 高阶函数
     * @return
     */
    static FuncSS produce() {
        return s -> s.toLowerCase();
    }

    public static void main(String[] args) {
        FuncSS f = produce();
        System.out.println(f.apply("YELLING"));
    }
}


interface FuncSS extends Function<String, String> {
}